﻿<%@ Register TagPrefix="aspBUS" Namespace="BUS" Assembly="BUS" %>
<%@ Register TagPrefix="aspDTO" Namespace="DTO" Assembly="DTO" %>
<%@ Page Title="Manage Providers" Language="C#" MasterPageFile="~/AdminPages/AdminPanel.Master" AutoEventWireup="true" CodeBehind="ManageProviders.aspx.cs" Inherits="MasterPageGroupF3.AdminPages.WebForm4" %>
<%@ Import Namespace="BUS" %>
<%@ Import Namespace="DTO" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    
    <div class="content1">
    <div class="frame">
        <div class="head">
        </div>
        <div class="content-catalog">
            <div id="name">
                Provider Manager
            </div>
            <div id="function">
                <ul>
                     <li><asp:ImageButton ID="Add" runat="server" ImageUrl="../images/Add.png" 
                             ToolTip="Add" ImageAlign="Middle" onclick="Add_Click"  /></li>
                     <li><asp:ImageButton ID="Edit" runat="server" ImageUrl="../images/edit.png" ToolTip="Edit" ImageAlign="Middle" OnClick="Edit_Click"/></li>
                     <li><asp:ImageButton ID="Delete" runat="server" ImageUrl="../images/delete.png" ToolTip="Delete" ImageAlign="Middle" OnClick="Delete_Click"/></li>
                     <li><asp:ImageButton ID="Help" runat="server" ImageUrl="../images/help.png" ToolTip="Help" ImageAlign="Middle" OnClick="Help_Click"/></li>       
                </ul>
                
            </div>
            <div class="clear">
            </div>
        </div>
        <div class="tail">
        </div>
    </div>
    <div class="frame">
        <div class="head">
        </div>
        <div class="provider">
           
                <div id="search">
                    <asp:Label runat="server" Text="Filter"></asp:Label>
                    <asp:TextBox runat="server" Width="150" ID="txtsearch" ></asp:TextBox>
                    <asp:Button runat="server"  ID="btsearch" Text="Go" OnClick="Go_Click"/>                    
                    <asp:Button runat="server" ID="btreset" Text="Reset" onclick="btreset_Click" />
                </div>
                <div id="listprovider">
                    
                    
                    <asp:GridView ID="GridProvider"  runat="server"  
                        AllowPaging="True" PageSize="4" AutoGenerateColumns = "False" 
                        CellPadding  = "4" ForeColor    = "#333333" GridLines="None" OnPageIndexChanging="GridProvider_PageIndexChanging" OnSorting="GridProvider_Sorting">
                        <Columns>
                            <asp:TemplateField HeaderText="Chọn" ItemStyle-Width="40">
                                <ItemTemplate>
                                   <asp:CheckBox ID="chk" runat="server" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField HeaderText="Mã" DataField="IDPROVIDER" ItemStyle-Width="20">
                                  
                            </asp:BoundField>
                            <asp:BoundField HeaderText="Tên đăng nhập" DataField="USERNAME" ItemStyle-Width="100">
                                  
                            </asp:BoundField>
                            <asp:BoundField HeaderText="Tên công ty" DataField="NAME" ItemStyle-Width="200">
                                  <ItemStyle Width="200px"></ItemStyle>
                            </asp:BoundField>
                            <asp:BoundField HeaderText="Địa chỉ" DataField="ADDRESS" ItemStyle-Width="400">
                                    <ItemStyle Width="400px"></ItemStyle>
                            </asp:BoundField>
                            <asp:BoundField HeaderText="Điện thoại" DataField="PHONE" ItemStyle-Width="100">
                                    <ItemStyle Width="100px"></ItemStyle>
                            </asp:BoundField>
                            <asp:BoundField HeaderText="Bản đồ" DataField="MAP" ItemStyle-Width="100" 
                                ItemStyle-BorderColor="#669999" Visible="false" >
                                    <ItemStyle BorderColor="#669999" Width="100px"></ItemStyle>
                            </asp:BoundField>
                            <asp:BoundField HeaderText="Giới thiệu" DataField="INTRODUCE_COMPANY" visible=false />
                        
                        </Columns>
                        <HeaderStyle         BackColor="#938fc0" ForeColor="#FFFFFF" Font-Bold="True" />
                        <RowStyle            BackColor="#dfeadb" />
                        <AlternatingRowStyle BackColor="#FFFFFF" />
                        <PagerStyle          BackColor="WhiteSmoke" ForeColor="#000" HorizontalAlign="Center" />
                        
                        

                     </asp:GridView>
                     
                </div>  
                           
        </div>
        <div class="tail">
        </div>
    </div>
    </div>
</asp:Content>


